package cn.xinfei.xdecision.common.service.datax.datamanage.v2;

import cn.xinfei.xdecision.common.model.datax.datamanage.request.DeriveVarSnapshotDetailVO;
import cn.xinfei.xdecision.common.model.datax.datamanage.request.DeriveVarSnapshotVO;
import cn.xinfei.xdecision.common.model.datax.datamanage.v2.VariableSnapshot;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface VariableSnapshotService extends IService<VariableSnapshot> {

    List<VariableSnapshot> findByVarCode(String varCode);

    DeriveVarSnapshotVO getSnapshotInfo(String varCode, Long versionId, Long organId);

    List<DeriveVarSnapshotDetailVO> getSnapshotDetails(String varCode, Long organId);
    void logicalDelete(String varCode, Long organId);

    List<VariableSnapshot> findByVarCodes(Collection<String> varCodes,Long organId);

    boolean checkVarCodeUsedInSnapshot(Collection<String> varCodes,Long organId);

}
